package com.wut.clock.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2022-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("am_notification")
@ApiModel(value="Notification对象", description="")
public class Notification implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发给的用户id")
    private String targetUserId;

    @ApiModelProperty(value = "类型 默认0-发给全体用户 1-发给特定用户")
    private Integer targetType;

    @ApiModelProperty(value = "通知内容")
    private String content;

    @ApiModelProperty(value = "状态 0-未发布 1-已发布")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除 未发布状态可删除，已发布不可删除")
    private Integer deleted;


}
